<?php
/**
duanxin yanzheng
 */
require_once(dirname(__FILE__)."/config.php");
CheckRank(0,0);
if(!isset($dopost)) $dopost = '';
if($dopost=='yanzheng')
{
    $yanzhengma = md5($yanzhengma);
    if($yanzhengma != $dxyzm)
    {
        $arr = array(
	        "zhi"=>"err",
	        "msg"=>"短信验证码错误"
        );
        echo json_encode($arr);
        exit;
    }else
	{
        $query = "UPDATE `#@__member` SET shouji='$shouji' where mid='".$cfg_ml->M_ID."' ";
        $dsql->ExecuteNoneQuery($query);

        // 清除会员缓存
        $cfg_ml->DelCache($cfg_ml->M_ID);
   
        $arr = array(
	        "zhi"=>"ok",
	        "msg"=>"手机绑定成功"
        );
        echo json_encode($arr);
        exit;
	}
}